home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Arashi 1.1 / Game Source / mtz / mtz src / moreInfo.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-08  |  615 b   |  32 lines  |  [TEXT/KAHL]

  1. /* mz 2/8/93 */
  2. /* Displays the "More Info dlg" from main app menu.
  3. */
  4.  
  5. extern    EventRecord        Event;
  6.  
  7. #define    MOREINFODIALOG    141
  8. #define DONEBUTTON 1
  9.  
  10. void    MoreInfo()
  11. {
  12.     DialogPtr    MoreInfoDialog;
  13.     DialogPtr    DialogHit;
  14.     int            ItemHit;
  15.     
  16.     MoreInfoDialog = GetNewDialog(MOREINFODIALOG,0,(WindowPtr)-1);
  17.     ShowWindow(MoreInfoDialog);
  18.     ItemHit = 0;
  19.     do
  20.     {    
  21.         if(GetNextEvent(everyEvent,&Event))
  22.         {    if(IsDialogEvent(&Event) && Event.what != keyDown)
  23.                 if(!DialogSelect(&Event,&DialogHit,&ItemHit))
  24.                     ItemHit=0;
  25.             
  26.         }
  27.     } while(!ItemHit);
  28.     DisposDialog(MoreInfoDialog);
  29.     Event.what = 0;
  30.     Event.modifiers = btnState;
  31. }
  32.